package com.shop.autoshop.util;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

/**
 * @author cai
 * @date 2023/2/24 20:53
 */
public class FileUtil {

    public static String content(String path) {
        try {
            return FileUtils.readFileToString(new File(path), "utf-8");
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }

}
